package chapter_22_state.classic_simple;

/**
 * Created by CharloYao on 2017/10/12.
 * 环境类
 */
public class Context {

    private State state;

    public State getState() {
        return state;
    }

    public void setState(State state) {
        this.state = state;
    }

    public void request(){
        state.handle();
    }
}
